home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / nsIRDFXMLSerializer.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  120 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIRDFXMLSerializer.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIRDFXMLSerializer_h__
  6. #define __gen_nsIRDFXMLSerializer_h__
  7.  
  8.  
  9. #ifndef __gen_nsIAtom_h__
  10. #include "nsIAtom.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsISupports_h__
  14. #include "nsISupports.h"
  15. #endif
  16.  
  17. #ifndef __gen_nsIRDFDataSource_h__
  18. #include "nsIRDFDataSource.h"
  19. #endif
  20.  
  21. /* For IDL files that don't want to include root IDL files. */
  22. #ifndef NS_NO_VTABLE
  23. #define NS_NO_VTABLE
  24. #endif
  25.  
  26. /* starting interface:    nsIRDFXMLSerializer */
  27. #define NS_IRDFXMLSERIALIZER_IID_STR "8ae1fbf8-1dd2-11b2-bd21-d728069cca92"
  28.  
  29. #define NS_IRDFXMLSERIALIZER_IID \
  30.   {0x8ae1fbf8, 0x1dd2, 0x11b2, \
  31.     { 0xbd, 0x21, 0xd7, 0x28, 0x06, 0x9c, 0xca, 0x92 }}
  32.  
  33. class NS_NO_VTABLE nsIRDFXMLSerializer : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFXMLSERIALIZER_IID)
  37.  
  38.   /**
  39.      * Initialize the serializer with the specified datasource.
  40.      * @param aDataSource the datasource from which data will be
  41.      *   serialized
  42.      */
  43.   /* void init (in nsIRDFDataSource aDataSource); */
  44.   NS_IMETHOD Init(nsIRDFDataSource *aDataSource) = 0;
  45.  
  46.   /**
  47.      * Add the specified namespace to the serializer.
  48.      * @param aPrefix the attribute namespace prefix
  49.      * @param aURI the namespace URI
  50.      */
  51.   /* void addNameSpace (in nsIAtom aPrefix, in DOMString aURI); */
  52.   NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsAString & aURI) = 0;
  53.  
  54. };
  55.  
  56. /* Use this macro when declaring classes that implement this interface. */
  57. #define NS_DECL_NSIRDFXMLSERIALIZER \
  58.   NS_IMETHOD Init(nsIRDFDataSource *aDataSource); \
  59.   NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsAString & aURI); 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  62. #define NS_FORWARD_NSIRDFXMLSERIALIZER(_to) \
  63.   NS_IMETHOD Init(nsIRDFDataSource *aDataSource) { return _to Init(aDataSource); } \
  64.   NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsAString & aURI) { return _to AddNameSpace(aPrefix, aURI); } 
  65.  
  66. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  67. #define NS_FORWARD_SAFE_NSIRDFXMLSERIALIZER(_to) \
  68.   NS_IMETHOD Init(nsIRDFDataSource *aDataSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aDataSource); } \
  69.   NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsAString & aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNameSpace(aPrefix, aURI); } 
  70.  
  71. #if 0
  72. /* Use the code below as a template for the implementation class for this interface. */
  73.  
  74. /* Header file */
  75. class nsRDFXMLSerializer : public nsIRDFXMLSerializer
  76. {
  77. public:
  78.   NS_DECL_ISUPPORTS
  79.   NS_DECL_NSIRDFXMLSERIALIZER
  80.  
  81.   nsRDFXMLSerializer();
  82.  
  83. private:
  84.   ~nsRDFXMLSerializer();
  85.  
  86. protected:
  87.   /* additional members */
  88. };
  89.  
  90. /* Implementation file */
  91. NS_IMPL_ISUPPORTS1(nsRDFXMLSerializer, nsIRDFXMLSerializer)
  92.  
  93. nsRDFXMLSerializer::nsRDFXMLSerializer()
  94. {
  95.   /* member initializers and constructor code */
  96. }
  97.  
  98. nsRDFXMLSerializer::~nsRDFXMLSerializer()
  99. {
  100.   /* destructor code */
  101. }
  102.  
  103. /* void init (in nsIRDFDataSource aDataSource); */
  104. NS_IMETHODIMP nsRDFXMLSerializer::Init(nsIRDFDataSource *aDataSource)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* void addNameSpace (in nsIAtom aPrefix, in DOMString aURI); */
  110. NS_IMETHODIMP nsRDFXMLSerializer::AddNameSpace(nsIAtom *aPrefix, const nsAString & aURI)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* End of implementation class template. */
  116. #endif
  117.  
  118.  
  119. #endif /* __gen_nsIRDFXMLSerializer_h__ */
  120.